package com.zjuee.base.model.common.company;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zjuee.base.model.Description;
import com.zjuee.base.valid.Insert;
import com.zjuee.base.valid.Update;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 企业仓库信息表
 *
 * @author wu liang
 * @since 1.0
 */
@Data
@TableName("bc_company_work_depository")
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class CompanyWorkDepository extends Description {

	/**企业ID*/
	private Long bciId;

	/**仓库名称*/
	@NotBlank(message = "bcwdName can't be empty", groups = {Insert.class, Update.class})
	private String bcwdName;

	/**仓库类别*/
	@NotBlank(message = "bcwdType can't be empty", groups = {Insert.class, Update.class})
	private String bcwdType;

	/**仓库数量*/
	@NotNull(message = "bcwdNumber can't be empty", groups = {Insert.class, Update.class})
	private Integer bcwdNumber;

	/**仓库面积(平方米)*/
	@NotNull(message = "bcwdArea can't be empty", groups = {Insert.class, Update.class})
	private Double bcwdArea;
	
	/**仓库存储(立方米)*/
	@NotNull(message = "bcwdStore can't be empty", groups = {Insert.class, Update.class})
	private Double bcwdStore;

}
